package funjava;

import java.lang.Math;

/**
 * Created by judasnow on 5/11/16.
 */
public class C1_3 {
    public static int c1_3 (int x, int y, int z) {
        if (x > y) {
            if (x > z) {
                return x;
            } else {
                return z;
            }
        } else {
            if (y > z) {
                return y;
            } else {
                return z;
            }
        }
    }
    public static int c1_3_2 (int x, int y, int z) {
        return Math.max(Math.max(x, y), z);
    }
    public static void main (String[] args) {
        System.out.print(c1_3(4, 6, 3));
        System.out.print(c1_3_2(4, 6, 3));
    }
}
